﻿using System;

namespace Max3
{
    class Program
    {
        static void Main(string[] args)
        {
            //Math.Max(x, y);
            //Math.Min(x, y);

            int a = 1;
            int b = 2;
            int c = 3;

            // max of 3 numbers
            int max = a;

            if(b > max)
            {
                max = b;
            }

            if(c > max)
            {
                max = c;
            }

            Console.WriteLine("max = " + max);

            // Min of 3 numbers
            int min = Math.Min(a, b);
            min = Math.Min(min, c);

            Console.WriteLine("min = " + min);

            Console.ReadKey();
        }
    }
}
